<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面未找到 - 个人云笔记</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lucide@latest/dist/umd/lucide.js">
    <script src="https://cdn.jsdelivr.net/npm/lucide@latest/dist/umd/lucide.js"></script>
</head>
<body class="bg-gray-50 min-h-screen flex items-center justify-center">
    <div class="max-w-md w-full mx-auto text-center">
        <div class="mb-8">
            <i data-lucide="file-x" class="w-24 h-24 mx-auto text-gray-400 mb-4"></i>
            <h1 class="text-6xl font-bold text-gray-900 mb-2">404</h1>
            <h2 class="text-2xl font-semibold text-gray-700 mb-4">页面未找到</h2>
            <p class="text-gray-600 mb-8">
                抱歉，您访问的页面不存在或已被移动。
            </p>
        </div>
        
        <div class="space-y-4">
            <button onclick="goBack()" 
                    class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-6 rounded-lg transition duration-200">
                <i data-lucide="arrow-left" class="w-4 h-4 inline mr-2"></i>
                返回上一页
            </button>
            
            <a href="/" 
               class="block w-full bg-gray-600 hover:bg-gray-700 text-white font-medium py-3 px-6 rounded-lg transition duration-200">
                <i data-lucide="home" class="w-4 h-4 inline mr-2"></i>
                返回首页
            </a>
        </div>
        
        <div class="mt-8 text-sm text-gray-500">
            <p>如果您认为这是一个错误，请联系管理员。</p>
        </div>
    </div>

    <script>
        // 初始化图标
        document.addEventListener('DOMContentLoaded', function() {
            lucide.createIcons();
        });

        // 返回上一页
        function goBack() {
            if (window.history.length > 1) {
                window.history.back();
            } else {
                window.location.href = '/';
            }
        }

        // 自动重定向到首页（可选）
        // setTimeout(() => {
        //     window.location.href = '/';
        // }, 10000); // 10秒后自动跳转
    </script>
</body>
</html>